package com.wzdigit.wms.basic.client.request.task;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * wms定时调度任务表
 * </p>
 *
 * @author 
 * @since 2021-04-26
 */
@Data
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = false)
public class UpdateTaskSchedulingRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 调度ID
     */
    @ApiModelProperty(value = "调度ID", required = true)
    @NotNull(message = "调度ID不能为空")
    private Integer taskSchedulingId;

    /**
     * 调度描述
     */
    @ApiModelProperty(value = "调度描述", required = false)
    private String describe;

    /**
     * 执行计划
     */
    @ApiModelProperty(value = "执行计划", required = true)
    @NotBlank(message = "执行计划不能为空")
    private String cron;

    /**
     * 单据类型，多个以；隔开
     */
    @ApiModelProperty(value = "单据类型，多个以；隔开", required = false)
    private String docType;
    
    /**
     * 工厂，多个以；隔开
     */
    @ApiModelProperty(value = "工厂组织，多个以；隔开", required = false)
    private String factory;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = false)
    private String comments;
}
